<div class="entry-bg"></div>
<div class="container">
    <!--login start-->
    <div class="form-wrap">
        <h1 class="login-title">系统权限管理</h1>
        <form novalidate class="form-login" name="loginForm">
            <legend>
                <h2>账号登录</h2>
            </legend>
            <!--error msg-->
            <div class="form-group height-50">
                <label for="username" class="icon-person"><i class="fa fa-user"></i></label>
                <input type="text" ng-blur="vm.checkValid(loginForm.username)" ng-class="{error: loginForm.username.$invalid && !loginForm.username.$pristine}" name="username" placeholder="账号" class="form-control" id="username" ng-model="vm.data.username" required>
                <span class="error" ng-show="loginForm.username.$invalid && !loginForm.username.$pristine">账号不能为空</span>
            </div>
            <div class="form-group height-50">
                <label for="password" class="icon-lock"><i class="fa fa-lock"></i></label>
                <input type="password" ng-blur="vm.checkValid(loginForm.password)" ng-class="{error: loginForm.password.$invalid && !loginForm.password.$pristine}" ng-keyup="vm.next($event)" name="password" placeholder="密码" class="form-control" id="password" ng-model="vm.data.password" required>
                <span class="error" ng-show="loginForm.password.$invalid && !loginForm.password.$pristine">密码不能为空</span>
            </div>
            <!--<div class="checkbox">-->
                <!--<label>-->
                    <!--<input type="checkbox" ng-model="vm.remember">记住我-->
                <!--</label>-->
            <!--</div>-->
            <div class="from-group">
                <p style="position: relative; z-index: 1001
"><a ui-sref="reset" target="_blank">修改密码</a></p>
            </div>
            <button type="button" class="btn btn-block btn-primary" ng-disabled="loginForm.$invalid || vm.eLoading" ng-click="vm.next()"><span ng-if="!vm.eLoading">立即登录</span><span ng-if="vm.eLoading"><i class="fa fa-spin fa-spinner"></i></span></button>
        </form><!--
        <form novalidate class="form-entry" name="entryForm" ng-if="vm.isLogin">
            <legend>
                <h2>选择岗位</h2>
            </legend>
            <div class="form-group height-30">
                <select name="sysPostId" ng-model="vm.selected" class="form-control" ng-keyup="vm.next('entry',$event)" ng-class="{error: entryForm.sysPostId.$invalid && !entryForm.sysPostId.$pristine}" ng-options="item as item.sysPostName for item in vm.select track by item.sysPostId" required class="form-control" >
                    <option value="">请选岗位</option>
                </select>
                <span class="error" ng-show="entryForm.sysPostId.$invalid && !entryForm.sysPostId.$pristine">请选择岗位</span>
            </div>
            <button type="button" class="btn btn-block btn-primary" ng-disabled="entryForm.$invalid || vm.sLoading" ng-click="vm.next('entry')"><span ng-if="!vm.sLoading">进入系统</span><span ng-if="vm.sLoading"><i class="fa fa-spin fa-spinner"></i></span></button>
        </form>-->
    </div>
    <!--login end-->
</div>